{php include wl_template('common/header');}
<style>
	.modal-dialog table{text-align: center;}
	.closeBtn{ font-family:arial; font-size:24px;color:#999; text-decoration:none; float:right; display: inline-block;width:36px;height:36px;line-height:36px;color:#333;text-align:center;position:absolute;top:0px;right:0px;color:#bbb;}
	.closeBtn:hover{text-shadow:0px 1px 3px #333;color:#333;}
	.jg:hover{ background:#f4f5f9}
	.SX{text-align: center;}
	.SX label{margin: 10px 20px;}
	.SX input{margin-right: 5px;float: left;}
</style>
<ul class="nav nav-tabs">
	<li{if $status == '0'} class="active"{/if}>
	<a href="{php echo web_url('agent/agent_users', array('op' => 'display', 'status' =>'0'))}">待沟通 </a>
	</li>
	<li {if $status == '1'} class="active"{/if}>
	<a href="{php echo web_url('agent/agent_users', array('op' => 'display', 'status' =>'1'))}">沟通中</a>
	</li>
	<li {if $status == '2'} class="active"{/if}>
	<a href="{php echo web_url('agent/agent_users', array('op' => 'display', 'status' =>'2'))}">重点跟进</a>
	</li>
	<li {if $status == '3'} class="active"{/if}>
	<a href="{php echo web_url('agent/agent_users', array('op' => 'display', 'status' =>'3'))}">订单套餐</a>
	</li>
	<li {if $status == '4'} class="active"{/if}>
	<a href="{php echo web_url('agent/agent_users', array('op' => 'display', 'status' =>'4'))}">VIP套餐</a>
	</li>
	<li {if $status == '-1'} class="active"{/if}>
	<a href="{php echo web_url('agent/agent_users', array('op' => 'display', 'status' =>'-1'))}">淘汰</a>
	</li>
	<li {if $status == '-2'} class="active"{/if}>
	<a href="{php echo web_url('agent/agent_users', array('op' => 'display', 'status' =>'-2'))}">作废</a>
	</li>
</ul>
<script>
	function detail(str,name){
		var uniacid = str; 
		var name =name;
		 $.ajax({
             type: "GET",
             url: "{php echo web_url('agent/agent_users',array('op' => 'det'))}",
             data:{"uniacid":uniacid},
			 dataType: "json",
			 beforeSend: function(){
				util.tips('操作载入中，请稍等', 2000);
              },
             success: function(data){	
				var a = JSON.stringify(data);
				var b = eval(data);
				var html = '<h3 style="margin-bottom:10px; text-align:center;">用户消费明细表</h3>';
				html +='<div class="panel-body" style=""><label class="col-md-2" style=" float: left; padding: 5px; ">当前用户：</label><label style="padding: 5px; ">'+name+'</label></div>';
				html += '<table class="table table-bordered" ><thead><tr><td>支付时间</td><td>订单类型</td><td>订单金额</td><td>提成比例</td><td>本次提成</td></tr></thead><tbody>';
				for(var i=0;i<b.length;i++){
			         html +='<tr><td>'+b[i].ptime+'</td><td>'+b[i].name+'</td><td>'+b[i].cash+'元</td><td>'+b[i].discount+'%</td><td  style="text-align:center">'+b[i].refund_cash+'元</td></tr>';
			         }//end read data
				
				html +='</tbody></table>';
				
				
				$("#orderWinpop").append(html);
				$("#details").trigger("click");
				
			 }
         });
		$("#orderWinpop").empty();
	}
	function addstatus(uid,name){
		document.getElementById("note").value="";
		var uid = uid; 
		var name =name;
		$.ajax({
             type: "GET",
             url: "{php echo web_url('agent/agent_users',array('op' => 'sendstatus'))}",
             data:{"uid":uid},
			 dataType: "json",
			 beforeSend: function(){
				util.tips('操作载入中，请稍等', 2000);
              },
             success: function(data){	
				var html ='<input type="hidden" id="add_uid"  name="uid" value="'+uid+'" />';
				html += '<h3 style="margin-bottom:30px; text-align:center;">新增用户进度</h3>';
				html +='<div class="panel-body" style=""><label class="col-md-2" style=" float: left; padding: 5px; ">当前用户：</label><label style="padding: 5px; ">'+name+'</label></div>';
				$("#addstatus-list").append(html);
				$("#addstatus").trigger("click");

				
			 }
         });

		$("#addstatus-list").empty();
	}
	function add(id){ 
		var uid = document.getElementById("add_uid").value;  
		var note=document.getElementById("note").value;  
		if($('#note').val() == ''){
			util.message('请输入您要更新的进度内容，退出请点击取消');
			return false;
		}
		$.ajax({
             type: "GET",
             url: "{php echo web_url('agent/agent_users',array('op' => 'addstatus'))}",
             data:{"uid":uid,'note':note},
			 dataType: "json",
			 beforeSend: function(){
				util.tips('操作已提交，请稍等', 2000);
              },
             success: function(data){	
				util.tips('成功添加！', 2000);
				$("#closebtn").trigger("click");
		
			 }
         });

	}
	function status(uid,name){

		var uid = uid; 
		var name = name; 
		 $.ajax({
             type: "GET",
             url: "{php echo web_url('agent/agent_users',array('op' => 'status-list'))}",
             data:{"uid":uid},
			 dataType: "json",
			 beforeSend: function(){
				util.tips('数据载入中，请稍等', 3000);
              },
             success: function(data){	
				var a = JSON.stringify(data);
				var b = eval(data);
				var html = '<h3 style="margin-bottom:10px; text-align:center;">用户追踪进度表</h3>';
				html +='<div class="panel-body" style=""><label class="col-md-2" style=" float: left; padding: 5px; ">当前用户：</label><label style="padding: 5px; ">'+name+'</label></div>';
				html += '<table class="table table-bordered" ><thead><tr><td style="width:20%">记录时间</td><td style="width:40%">当前进度</td><td style="width:20%">沟通员</td><td style="width:20%">操作</td></tr></thead><tbody>';
				for(var i=0;i<b.length;i++){
			         html +='<tr><td>'+b[i].addtime+'</td><td class="jg" style="cursor:pointer; " title="查看详情" onclick="detail_status('+b[i].id+')">'+b[i].note+'</td><td class="jg" style="cursor:pointer; " title="查看详情">'+b[i].uname+'</td><td style="text-align:center"><a class="btn btn-info btn-sm" style="margin-right:5px;" onclick="detstatus('+b[i].id+')">编辑</a><a style="margin-left:5px;" class="btn btn-warning btn-sm" onclick="delstatus('+b[i].id+')">删除 </a></td></tr>';
			    }
				html +='</tbody></table>';
				
				
				$("#status-list").append(html);
				$("#status").trigger("click");
				
			 }
         });
		$("#status-list").empty();
	}
	function detstatus(id){
		var id = id; 
		$.ajax({
             type: "GET",
             url: "{php echo web_url('agent/agent_users',array('op' => 'detstatus'))}",
             data:{"id":id},
			 dataType: "json",
			  beforeSend: function(){
				util.tips('数据载入中，请稍等', 3000);
              },
             success: function(data){	
             	$("#status-list").empty();
             	var html = '<h3 style="margin-bottom:30px; text-align:center;">编辑用户进度</h3><div class="panel-body" style=""><label class="col-md-2" style=" float: left; padding: 5px; padding-left:0;">当前用户：</label><label style="padding: 5px; ">'+data.name+'</label></div><div class="clearfix box"><label class="col-md-2 control-label">录入时间：  </label><div class="col-md-7" style="float:left"><span>'+data.addtime+'</span></div></div>';
				html += '<div class="panel panel-default xs"  style=" background: #fff;border: none;"><div class="panel-body" style=""><label class="col-md-2" style=" float: left; padding: 0; ">目前进度：</label><div class="col-md-10" style="position:relative"><textarea class="form-control" name="note" id="new_note" rows="5"  placeholder="此处输入通知内容，可以通过右下角拖拽来使输入框变长。" >'+data.note+'</textarea></div></div></div>';
				html +='<p style="text-align: center; margin-top: 20px;"><button type="button" style="margin-right:10px;"  class="btn btn-primary" onclick="detstatusres('+data.id+')">提交</button><button style="margin-left:10px;" type="button" class="btn btn-primary"  onclick="qxop('+data.id+')">取消</button></p>';
				$("#status-list").append(html);
				
			 }
         });

	}
	function detail_status(id){
		var id = id; 

		$.ajax({
             type: "GET",
             url: "{php echo web_url('agent/agent_users',array('op' => 'detstatus'))}",
             data:{"id":id},
			 dataType: "json",
			  beforeSend: function(){
				util.tips('数据载入中，请稍等', 3000);
              },
             success: function(data){	
             	$("#status-list").empty();
             	var html = '<h3 style="margin-bottom:40px; margin-bottom:30px; text-align:center;">用户进度详情</h3><div class="panel-body" style=""><label class="col-md-2" style=" float: left; padding: 5px; padding-left:0;">当前用户：</label><label style="padding: 5px; ">'+data.name+'</label></div><div class="clearfix box"><label class="col-md-2 control-label">录入时间：  </label><div class="col-md-10" style="float:left"><span>'+data.addtime+'</span></div></div>';
				
				html += '<div class="clearfix box" style="margin-top:40px; margin-bottom:40px;"><label class="col-md-2 control-label" >目前进度：</label><div class="col-md-10" style="float:left"><span>'+data.note+'</span></div></div>';
				html +='<p style="text-align: center; margin-top:40px;"><button type="button" class="btn btn-primary"  onclick="qxop('+data.id+')">取消</button></p>';
				$("#status-list").append(html);
				
			 }
         });

	}
	function detstatusres(id){
		var note=document.getElementById("new_note").value;  
		var id = id; 

		$.ajax({
             type: "GET",
             url: "{php echo web_url('agent/agent_users',array('op' => 'update_status'))}",
             data:{"id":id,'note':note},
			 dataType: "json",
			 beforeSend: function(){
				util.tips('进度已更新，请稍等载入数据', 2000);
              },
             success: function(data){	
             	$("#status-list").empty();
				var a = JSON.stringify(data);
				var b = eval(data.list);
				var html = '<h3 style="margin-bottom:30px; text-align:center;">用户追踪进度表</h3>';
				html +='<div class="panel-body" style=""><label class="col-md-2" style=" float: left; padding: 5px; ">当前用户：</label><label style="padding: 5px; ">'+data.name+'</label></div>';
				html += '<table class="table table-bordered" ><thead><tr><td style="width:20%">记录时间</td><td style="width:40%">当前进度</td><td style="width:20%">沟通员</td><td style="width:20%">操作</td></tr></thead><tbody>';
				for(var i=0;i<b.length;i++){
			         html +='<tr><td>'+b[i].addtime+'</td><td class="jg" style="cursor:pointer; " title="查看详情" onclick="detail_status('+b[i].id+')">'+b[i].note+'</td><td class="jg" style="cursor:pointer; " title="查看详情">'+b[i].uname+'</td><td style="text-align:center"><a class="btn btn-info btn-sm" style="margin-right:5px;" onclick="detstatus('+b[i].id+')">编辑</a><a style="margin-left:5px;" class="btn btn-warning btn-sm" onclick="delstatus('+b[i].id+')">删除 </a></td></tr>';
			    }
				html +='</tbody></table>';
				
				
				$("#status-list").append(html);

			 }
         });

	}
	function qxop(id){
		var id = id; 
		$.ajax({
             type: "GET",
             url: "{php echo web_url('agent/agent_users',array('op' => 'detail_status'))}",
             data:{"id":id},
			 dataType: "json",
			 beforeSend: function(){
				util.tips('操作已取消，等待加载', 2000);
              },
             success: function(data){	
             	$("#status-list").empty();
				var a = JSON.stringify(data);
				var b = eval(data.list);
				var html = '<h3 style="margin-bottom:10px; text-align:center;">用户追踪进度表</h3>';
				html +='<div class="panel-body" style=""><label class="col-md-2" style=" float: left; padding: 5px; ">当前用户：</label><label style="padding: 5px; ">'+data.name+'</label></div>';
				html += '<table class="table table-bordered" ><thead><tr><td style="width:20%">记录时间</td><td style="width:40%">当前进度</td><td style="width:20%">沟通员</td><td style="width:20%">操作</td></tr></thead><tbody>';
				for(var i=0;i<b.length;i++){
			         html +='<tr><td>'+b[i].addtime+'</td><td class="jg" style="cursor:pointer; " title="查看详情" onclick="detail_status('+b[i].id+')">'+b[i].note+'</td><td class="jg" style="cursor:pointer; " title="查看详情">'+b[i].uname+'</td><td style="text-align:center"><a class="btn btn-info btn-sm" style="margin-right:5px;" onclick="detstatus('+b[i].id+')">编辑</a><a style="margin-left:5px;" class="btn btn-warning btn-sm" onclick="delstatus('+b[i].id+')">删除 </a></td></tr>';
			    }//end read data
				
				html +='</tbody></table>';
				
				
				$("#status-list").append(html);

			 }
         });

	}
	function delstatus(id){ 
		var id = id; 
		$.ajax({
             type: "GET",
             url: "{php echo web_url('agent/agent_users',array('op' => 'delete_status'))}",
             data:{"id":id},
			 dataType: "json",
			 beforeSend: function(){
				util.tips('删除操作已成功，请稍等载入数据', 2000);
              },
             success: function(data){	
             	$("#status-list").empty();
				var a = JSON.stringify(data);
				var b = eval(data.list);
				var html = '<h3 style="margin-bottom:10px; text-align:center;">用户追踪进度表</h3>';
				html +='<div class="panel-body" style=""><label class="col-md-2" style=" float: left; padding: 5px; ">当前用户：</label><label style="padding: 5px; ">'+data.name+'</label></div>';
				html += '<table class="table table-bordered" ><thead><tr><td style="width:20%">记录时间</td><td style="width:40%">当前进度</td><td style="width:20%">沟通员</td><td style="width:20%">操作</td></tr></thead><tbody>';
				for(var i=0;i<b.length;i++){
			         html +='<tr><td>'+b[i].addtime+'</td><td class="jg" style="cursor:pointer; " title="查看详情" onclick="detail_status('+b[i].id+')">'+b[i].note+'</td><td class="jg" style="cursor:pointer; " title="查看详情">'+b[i].uname+'</td><td style="text-align:center"><a class="btn btn-info btn-sm" style="margin-right:5px;" onclick="detstatus('+b[i].id+')">编辑</a><a style="margin-left:5px;" class="btn btn-warning btn-sm" onclick="delstatus('+b[i].id+')">删除 </a></td></tr>';
			    }
				html +='</tbody></table>';
				
				
				$("#status-list").append(html);

			 }
         });

	}
	function out(uid){ 
		var uid=uid;
		if(confirm("注意，用户淘汰后将不再显示！")){ 
			$.ajax({
	             type: "GET",
	             url: "{php echo web_url('agent/agent_users',array('op' => 'out'))}",
	             data:{"uid":uid,},
				 dataType: "json",
	             success: function(data){	
	             	
					util.tips('淘汰成功！', 2000);
					setTimeout(function(){  //使用  setTimeout（）方法设定定时2000毫秒
					window.location.reload();//页面刷新
					},1000);
					
				 }
	         });
			return true; 
		}else{ 
			return false; 
		} 
	} 
	function reout(uid){ 
		var uid=uid;
		if(confirm("确认恢复该用户吗？")){ 
			$.ajax({
	             type: "GET",
	             url: "{php echo web_url('agent/agent_users',array('op' => 'reout'))}",
	             data:{"uid":uid,},
				 dataType: "json",
	             success: function(data){	
	             	
					util.tips('恢复成功！', 2000);
					setTimeout(function(){  //使用  setTimeout（）方法设定定时2000毫秒
					window.location.reload();//页面刷新
					},1000);
					
				 }
	         });
			return true; 
		}else{ 
			return false; 
		} 
	} 
	function change(id){ 
		var uid = id; 
		$.ajax({
             type: "GET",
             url: "{php echo web_url('agent/agent_users_admin',array('op' => 'show_referral'))}",
             data:{"uid":uid},
			 dataType: "json",
             success: function(data){	
				var html = '<h3 style="margin-bottom:30px; text-align:center;">修改用户从属关系</h3>';
				html +='<input type="hidden" id="uid"  name="uid" value="'+data.uid+'" />';
				html +='<div class="panel-body" style=""><label class="col-md-2" style=" float: left; padding: 5px; ">当前用户：</label><label style="padding: 5px; ">'+data.username+'</label></div>';
				html += '<div class="panel panel-default xs"  style=" background: #fff;border: none;"><div class="panel-body" style=""><label class="col-md-2" style=" float: left; padding: 5px; ">推荐码：</label><div class="col-md-10" style="position:relative"><input type="text" name="referral" class="form-control" id="referral"  value="'+data.referral+'" autocomplete="off" /></div></div></div>';
				html +='<p style="text-align: center; margin-top: 20px;"><input type="submit"  name="submit" value="提交" class="btn btn-primary" style="float: none; margin-right:5px"/><button style="margin-left:5px" type="button" class="btn btn-primary" data-dismiss="modal">取消</button></p>';
				


				$("#referral_show").append(html);
				$("#module-referral").trigger("click");
			 }
         });
	$("#referral_show").empty();
	}
	function shuxing(id){
		$('#modal-module-SX').modal();
		var uid = id;
		var html='<div class="SX" data-id='+uid+'><label><input value="1" type="radio" name="SX" checked><span>沟通中</span></label><label><input value="2" type="radio" name="SX"><span>重点跟进</span></label><label><input value="3" type="radio" name="SX"><span>订单套餐</span></label><label><input value="4" type="radio" name="SX"><span>VIP套餐</span></label><label><input value="-1" type="radio" name="SX"><span>淘汰</span></label><label><input value="-2" type="radio" name="SX"><span>作废</span></label><p style="text-align: center; margin-top: 20px;"><button class="btn btn-primary" onclick="submitSX()" style="float: none; margin-right:5px">提交</button><button style="margin-left:5px" type="button" class="btn btn-primary" data-dismiss="modal">取消</button></p></div>';
		$("#modal-module-SX .modal-content").html(html);
	}
	function submitSX(){
		$.get(
				"{php echo web_url('agent/agent_users_admin',array('op' => 'change_status'))}",
				{
					uid:$('.SX').data("id"),
					status:$('.SX input:radio[name="SX"]:checked').val()
				},
				function(){
					location.reload();
				}
		)
	}
</script>
<div class="main"><a title="" style="overflow: hidden;"></a>
	<div class="panel panel-info">
	    <div class="panel-heading">筛选</div>
	    <div class="panel-body">
            <form action="{php echo web_url('agent/examine')}" method="get" class="form-horizontal" role="form" id="form1">
            <input type="hidden" name="c" value="site" />
            <input type="hidden" name="a" value="entry" />
            <input type="hidden" name="m" value="lexiangpingou" />
            <input type="hidden" name="do" value="agent" />
            <input type="hidden" name="ac" value="agent_users" />
            <input type="hidden" name="op" value="display" />
			{if $status == -1}<input type="hidden" name="status" value="-1" />{/if}
			
                <div class="form-group">
                    <label class="col-sm-2 control-label">用户名： </label>
                    <div class="col-sm-6 ">
                        <input class="form-control" name="keyword_username" id="" type="text" value="{$_GPC['keyword_username']}" placeholder="可查询用户名">
                    </div>
                </div>
                
				<div class="form-group">
                    <label class="col-sm-2 control-label">公众号：</label>
                    <div class="col-sm-6 ">
                        <input class="form-control" name="keyword_gzname" id="" type="text" value="{$_GPC['keyword_gzname']}" placeholder="可查询公众号名称">
                    </div>
                </div>
				
				<div class="form-group">
                    <label class="col-sm-2 control-label">手机号</label>
                    <div class="col-sm-6 ">
                        <input class="form-control" name="keyword_mobile" id="" type="text" value="{$_GPC['keyword_mobile']}" placeholder="根据手机号查询">
                    </div>
                </div>
                
                <div class="form-group">
                	<div class="col-md-offset-2 col-sm-2 col-lg-2" style="text-align: left;">
	                	<button class="btn btn-default"><i class="fa fa-search"></i> 搜索</button>
	                </div>
                </div>
            </form>
			
          <!--  <a href='{php echo $this->createWebUrl('grouporder', array('op' => 'output','groupstatus'=>$groupstatus,'starttime'=>$starttime,'endtime'=>$endtime))}'><button class="btn btn-info"><i class="fa fa-download"></i> 导出记录</button></a>-->
	    </div>
	</div>
	<div class="panel panel-default">
		<div class="panel-body table-responsive">
			<table class="table table-hover">
				<thead class="navbar-inner">
					<tr>
						<th style="width:15%">用户名 </th>
						<th style="width:15%" >联系方式</th>
						<th style="width:15%">公众号名称</th>	
						<th style="width:13.5%">消费金额</th>							
						<th style="width:10%">总购买次数</th>
						<th style="width:12.5%">最后支付时间</th>
						<th style="width:12.5%">VIP时间</th>
						<th style="width:12.5%">订单量</th>
						<th style="width:10%">预计提成汇总</th>
						<th style="text-align: center; width:9%">操作</th>

					</tr>
				</thead>
				<tbody>
					{loop $alluser $users}
						<td class="" >
							<span>{$users['username']}</span>
						</td>
						<td class="" >
							<span style="float: left;">姓名：{$users['realname']}</span><br>
							<span style="float: left;">手机：{$users['mobile']}</span><br>
							<span style="float: left;">QQ：{$users['qq']}</span><br>
							<span style="float: left;">时间：{$users['joindate']}</span>
						</td>
						<td class="" >
							<span>{$users['gzname']}</span>
						</td>
						<td class="" >
							<span>{if $users['sum_cash'] == ""}0{/if}{$users['sum_cash']}元</span><br>
							{if $users['sum_cash'] != ""}<a class="label label-warning"  id="seekTel" onclick="detail({$users['uniacid']},'{$users['username']}')">查看明细</a>{/if}
							<button id="details" style="display: none;"  class="btn btn-default" type="button" onclick="popwin = $('#modal-module-xx').modal();">1隐藏点击</button>
						</td>
						
						<td class="" >
							<span>{if $users['total'] == ""}0{/if}{$users['total']}次</span>
						</td>
						<td class="" >
							<span>{if $users['lasttime'] == ""}——{/if}{$users['lasttime']}</span>
						</td>
					<td class="" >
						<span>{if $users['endtime'] == ""}——{/if}{$users['endtime']}</span>
					</td>
					<td class="" >
						<span>{$users['ordernum']}</span>
					</td>
						<td class="" >
							<span>{if $users['sum_refund_cash'] == ""}0{/if}{$users['sum_refund_cash']}元</span>
						</td>
						<td class="" style="text-align: center;">
							<a class="label label-info"style="margin: 0 auto; margin-bottom: 5px;  display: block; width: 64px;"  onclick="addstatus({$users['uid']},'{$users['username']}')" >新增进度 </a>
							<button id="addstatus" style="display: none;" style="margin-top: 5px;"    class="btn btn-default" type="button" onclick="popwin = $('#modal-module-addstatus').modal();">1隐藏点击</button>
							<a class="label label-primary" style="margin: 0 auto;  margin-bottom: 5px; display: block; width: 64px;" onclick="status({$users['uid']},'{$users['username']}')" >查看进度 </a>
							<button id="status" style="display: none;"  class="btn btn-default" type="button" onclick="popwin = $('#modal-module-status').modal();">1隐藏点击</button>
							{if $status == 0}<a class="label label-warning" style="margin: 0 auto; margin-bottom: 5px; display: block; width: 64px;" onclick="out({$users['uid']})">淘汰用户</a>{/if}
							{if $status == -1}<a class="label label-warning" style="margin: 0 auto; margin-bottom: 5px; display: block; width: 64px;" onclick="reout({$users['uid']})">恢复用户</a>{/if}
						<a onclick="change({$users['uid']})"  class="label label-danger" style="margin: 0 auto; display: block; width: 64px;"  >用户转让</a>
							<a onclick="shuxing({$users['uid']})"  class="label label-danger" style="margin: 0 auto; margin-top: 5px;display: block; width: 64px;"  >属性更改</a>

							<button id="module-referral" style="display: none;"  class="btn btn-default" type="button" onclick="popwin = $('#modal-module-referral').modal();">1隐藏点击</button>
								
						</td>
					</tr>
					{/loop}
				</tbody>
			</table>
			{$pager}
		</div>
	</div>
</div>
{php include wl_template('common/footer');}
<div id="modal-module-SX" class="modal fade sc" tabindex="-1">
	<div class="modal-dialog" style='width:1000px; height:85%;font-size: 14px; text-align: left; padding: 30px; margin-top: 15%;'>
		<a  class="closeBtn" style="position: absolute; top:40px; right:40px; z-index: 9999999;" data-dismiss="modal"><font color="ff0000">x</font></a>
		<div class="modal-content" style=" padding: 30px; ">

		</div>
	</div>
</div>
<div id="modal-module-xx" class="modal fade sc" tabindex="-1">
							<div class="modal-dialog" style='width:1000px; margin-bottom: 10%; height:85%;font-size: 14px; text-align: left; padding: 30px; '>
								<a class="closeBtn" style="position: absolute; top:40px; right:40px; z-index: 9999999;" data-dismiss="modal"><font color="ff0000">x</font></a>
								<div class="modal-content" style=" padding: 30px; ">
									<div id="orderWinpop">
								
									
									</div>

										
									<p style="text-align: center; margin-top: 20px;">
										<button type="button" class="btn btn-primary" data-dismiss="modal">
	 										关闭
	            						</button>
									</p>
									
								</div>
							</div>
						</div>
<div id="modal-module-addstatus" class="modal fade sc" tabindex="-1">
							<div class="modal-dialog" style='width:1000px; height:85%;font-size: 14px; text-align: left; padding: 30px; margin-top: 15%;'>
								<a id="closebtn" class="closeBtn" style="position: absolute; top:40px; right:40px; z-index: 9999999;" data-dismiss="modal"><font color="ff0000">x</font></a>
								<div class="modal-content" style=" padding: 30px; ">

									<div id="addstatus-list">
								
									
									</div>
									

									    
									    
									
										<div class="panel panel-default"  style=" background: #fff;border: none;">
											
											<div class="panel-body" style="">
												<label class="col-md-2" style=" float: left; padding: 5px; ">目前进度：</label>
												<div class="col-md-10" style="position:relative">
														<textarea class="form-control" name="note" id="note" rows="5"  placeholder="此处输入通知内容，可以通过右下角拖拽来使输入框变长。" ></textarea>
												</div>
											</div>
										</div>
										<p style="text-align: center; margin-top: 20px;">
											<input type="button" onclick="add()" name="submit" value="提交" class="btn btn-primary" style="float: none;"/>
											<button type="button" class="btn btn-primary" data-dismiss="modal">
		 										取消
		            						</button>
		            						
										</p>
									</form>

									
								</div>
							</div>
					</div>
<div id="modal-module-status" class="modal fade sc" tabindex="-1">
							<div class="modal-dialog" style='width:1000px; margin-bottom: 10%; height:85%;font-size: 14px; text-align: left; padding: 30px; '>
								<a class="closeBtn" style="position: absolute; top:40px; right:40px; z-index: 9999999;" data-dismiss="modal"><font color="ff0000">x</font></a>
								<div class="modal-content" style=" padding: 30px; ">
									<form action="" method="post" id="form2">
									<div id="status-list">
								
									
									</div>
									</form>
								</div>
							</div>
						</div>
						<div id="modal-module-referral" class="modal fade sc" tabindex="-1">
							<div class="modal-dialog" style='width:1000px; height:85%;font-size: 14px; text-align: left; padding: 30px; margin-top: 15%;'>
								<a id="closebtn" class="closeBtn" style="position: absolute; top:40px; right:40px; z-index: 9999999;" data-dismiss="modal"><font color="ff0000">x</font></a>
								<div class="modal-content" style=" padding: 30px; ">
									<form action="" method="post" id="form2">
									<input type="hidden" name="c" value="site" />
						            <input type="hidden" name="a" value="entry" />
						            <input type="hidden" name="m" value="lexiangpingou" />
						            <input type="hidden" name="do" value="agent" />
						            <input type="hidden" name="ac" value="agent_users" />
						            <input type="hidden" name="op" value="update_referral" />
									<div id="referral_show">
								
									
									</div>
									</form>
									
								</div>
							</div>
					</div>